package cn.kgc.spring.day02.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author 课工场
 * @date 2024/11/6
 * @description
 */
@Data
@Component
public class Boo {

    @Value("${id}")
    private Integer id;
    @Value("${info}")
    private String  info;
    @Value("${birth}")
    private Date birth;

    @Value("#{'${message}'.split(',')}")
    private String[] message;
    @Value("#{'${lst}'.split(',')}")
    private List<Integer> ids;
    @Value("#{'${sts}'.split(',')}")
    private Set<String> sts;
    @Value("#{${mp}}")
    private Map<String,String> mp;
}
